package top.makeprogress.databaseoperate.config;

public class MysqlConfig {

	private static String url;
	private static String jdbcDriver;
	private static String userName;
	private static String password;
	static{
		url=String.format(ConfigProperties.getString("mysql.url"),
				ConfigProperties.getString("mysql.host"),
				ConfigProperties.getString("mysql.port"),
				ConfigProperties.getString("mysql.defaultdatabase"),
				ConfigProperties.getString("mysql.params"));
		jdbcDriver=ConfigProperties.getString("mysql.jdbc.driver");
		userName = ConfigProperties.getString("mysql.username");
		password=ConfigProperties.getString("mysql.password");
	}

	public static String getUrl() {
		return url;
	}


	public static String getJdbcDriver() {
		return jdbcDriver;
	}

	public static String getUserName() {
		return userName;
	}


	public static String getPassword() {
		return password;
	}

}
